package netcode.helper;

public class PacketResponse {
	private boolean received;
	private boolean errorOccurred;
	private byte errorCode;
	private String errorMessage;
	
	public PacketResponse(){
		received = false;
		errorOccurred = false;
	}
	
	public boolean isReceived() {
		return received;
	}
	public void setReceived(boolean received) {
		this.received = received;
	}
	public boolean isErrorOccurred() {
		return errorOccurred;
	}
	public void setErrorOccurred(boolean errorOccurred) {
		this.errorOccurred = errorOccurred;
	}
	public byte getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(byte errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
}
